<?php
class ORMpz_ecom_customer {
  public function toObj($args) {
    $obj = new stdClass();
    if (isset($args->track_id)) {
      $obj->track_id =  $args->track_id;
    }
    if (isset($args->date_added)) {
      $obj->date_added =  $args->date_added;
    }
    if (isset($args->date_last_mod)) {
      $obj->date_last_mod =  $args->date_last_mod;
    }
    if (isset($args->email)) {
      $obj->email =  $args->email;
    }
    if (isset($args->password)) {
      $obj->password =  $args->password;
    }
    if (isset($args->name)) {
      $obj->name =  $args->name;
    }
    if (isset($args->mob)) {
      $obj->mob =  $args->mob;
    }
    if (isset($args->tel)) {
      $obj->tel =  $args->tel;
    }
    if (isset($args->reg_ip)) {
      $obj->reg_ip =  $args->reg_ip;
    }
    if (isset($args->pw_question)) {
      $obj->pw_question =  $args->pw_question;
    }
    if (isset($args->pw_answer)) {
      $obj->pw_answer =  $args->pw_answer;
    }
    if (isset($args->status)) {
      $obj->status =  $args->status;
    }
    if (isset($args->company_name)) {
      $obj->company_name =  $args->company_name;
    }
    if (isset($args->link_blog)) {
      $obj->link_blog =  $args->link_blog;
    }
    if (isset($args->link_web)) {
      $obj->link_web =  $args->link_web;
    }
    if (isset($args->country)) {
      $obj->country =  $args->country;
    }
    if (isset($args->perc_of_use)) {
      $obj->perc_of_use =  $args->perc_of_use;
    }
    if (isset($args->no_of_weds)) {
      $obj->no_of_weds =  $args->no_of_weds;
    }
    if (isset($args->how_hear_us)) {
      $obj->how_hear_us =  $args->how_hear_us;
    }
    if (isset($args->access_to_forum)) {
      $obj->access_to_forum =  $args->access_to_forum;
    }
    if (isset($args->send_price_list)) {
      $obj->send_price_list =  $args->send_price_list;
    }
    if (isset($args->phone_me)) {
      $obj->phone_me =  $args->phone_me;
    }
    if (isset($args->we_need_know)) {
      $obj->we_need_know =  $args->we_need_know;
    }
    if (isset($args->help_now)) {
      $obj->help_now =  $args->help_now;
    }
    return $obj;
  }
}
?>
